package com.vegetable.common.base;

import com.vegetable.modules.service.outbound.ISalesOutService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ApplicationListenerImpl implements ApplicationListener<ApplicationStartedEvent> {
    @Lazy
    @Autowired
    private ISalesOutService iSalesOutService;
    
    @Override
    public void onApplicationEvent(ApplicationStartedEvent event) {
        log.info("系统启动后，开始初始化");
//        iSalesOutService.initUnitPackCost();
    }
}